home *** CD-ROM | disk | FTP | other *** search
- ' This script is used to simplify the Upload Process.
- ' It prompts for a single filename, wildcards allowed, and
- ' invokes the selected protocol with Zmodem being the default.
- '
- ' Add this to your Macro Bar with these settings:
- '
- ' Command: @SCRIPT 1UP.SCR Desc: 1Up!
- '
-
- Dialog SimpleUpload 36, 45, 194, 130
- caption "One-Up!"
- groupbox "File to send (wildcards allowed)", -1, 8, 8, 180, 30
- filename as edittext 100, 12, 21, 170, 12
- groupbox "Protocol", -1, 8, 44, 180, 55
- pASCII as radiobutton "ASCII", 101, 15, 55, 50, 12
- pXmodem as radiobutton "Xmodem", 102, 70, 55, 50, 12
- pXmodemC as radiobutton "XmodemCRC", 103, 125, 55, 50, 12
- pXmodem1K as radiobutton "Xmodem1K", 104, 15, 70, 50, 12
- pXmodem1KG as radiobutton "Xmodem1KG", 105, 70, 70, 50, 12
- pYmodem as radiobutton "Ymodem", 106, 125, 70, 50, 12
- pYmodemG as radiobutton "YmodemG", 107, 15, 85, 50, 12
- pZmodem as radiobutton "Zmodem", 108, 70, 85, 50, 12
- pKermit as radiobutton "Kermit", 109, 125, 85, 50, 12
- groupbox "", -1, 8,105, 180, 1
- defpushbutton "OK", IDOK, 33, 110, 50, 14
- pushbutton "Cancel", IDCANCEL, 103, 110, 50, 14
- end dialog
-
- dim su as SimpleUpload
- su.filename = "c:\qmwin\" 'default pathname
- su.pZmodem = 1 'default protocol
- do
- if dialogbox(su) <> IDOK then
- exit do
- end if
- if su.pASCII then Upload su.filename, ASCII
- if su.pXmodem then Upload su.filename, Xmodem
- if su.pXmodemC then Upload su.filename, XmodemCRC
- if su.pXmodem1K then Upload su.filename, Xmodem1K
- if su.pXmodem1KG then Upload su.filename, Xmodem1KG
- if su.pYmodem then Upload su.filename, Ymodem
- if su.pYmodemG then Upload su.filename, YmodemG
- if su.pZmodem then Upload su.filename, Zmodem
- if su.pKermit then Upload su.filename, Kermit
- end
- loop
-
-